package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_templates")
public class TemplatesDo extends Model<TemplatesDo> {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private  Integer id;
    @TableField("name")
    private String name;          // 模板名称（唯一）
    @TableField("content")
    private String content;       // FreeMarker模板内容
    @TableField("url")
    private String url;           // 模板访问路径/外部链接
    @TableField("created_by")
    private String createdBy;     // 创建人标识
    @TableField("created_at")
    private Date createdAt; // 创建时间
    @TableField("updated_at")
    private Date updatedAt; // 最后更新时间
    @TableField("mail_title")
    private String mailTitle;     // 邮件标题
    @TableField("times_stamp")
    private Long timesStamp;
}